package com.ruoyi.erp.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.erp.mapper.LedyOuterFeePayMapper;
import com.ruoyi.erp.domain.LedyOuterFeePay;
import com.ruoyi.erp.service.ILedyOuterFeePayService;

/**
 * 代支管理Service业务层处理
 * 
 * @author ztj
 * @date 2023-04-04
 */
@Service
public class LedyOuterFeePayServiceImpl implements ILedyOuterFeePayService 
{
    @Autowired
    private LedyOuterFeePayMapper ledyOuterFeePayMapper;

    /**
     * 查询代支管理
     * 
     * @param id 代支管理主键
     * @return 代支管理
     */
    @Override
    public LedyOuterFeePay selectLedyOuterFeePayById(Long id)
    {
        return ledyOuterFeePayMapper.selectLedyOuterFeePayById(id);
    }
    @Override
    public List<LedyOuterFeePay> selectLedyOuterFeePayByIds(Long[] ids)
    {
        return ledyOuterFeePayMapper.selectLedyOuterFeePayByIds(ids);
    }
    /**
     * 查询代支管理列表
     * 
     * @param ledyOuterFeePay 代支管理
     * @return 代支管理
     */
    @Override
    public List<LedyOuterFeePay> selectLedyOuterFeePayList(LedyOuterFeePay ledyOuterFeePay)
    {
        return ledyOuterFeePayMapper.selectLedyOuterFeePayList(ledyOuterFeePay);
    }

    /**
     * 新增代支管理
     * 
     * @param ledyOuterFeePay 代支管理
     * @return 结果
     */
    @Override
    public int insertLedyOuterFeePay(LedyOuterFeePay ledyOuterFeePay)
    {
        ledyOuterFeePay.setCreateTime(DateUtils.getNowDate());
        return ledyOuterFeePayMapper.insertLedyOuterFeePay(ledyOuterFeePay);
    }

    /**
     * 修改代支管理
     * 
     * @param ledyOuterFeePay 代支管理
     * @return 结果
     */
    @Override
    public int updateLedyOuterFeePay(LedyOuterFeePay ledyOuterFeePay)
    {
        ledyOuterFeePay.setUpdateTime(DateUtils.getNowDate());
        return ledyOuterFeePayMapper.updateLedyOuterFeePay(ledyOuterFeePay);
    }

    /**
     * 批量删除代支管理
     * 
     * @param ids 需要删除的代支管理主键
     * @return 结果
     */
    @Override
    public int deleteLedyOuterFeePayByIds(Long[] ids)
    {
        return ledyOuterFeePayMapper.deleteLedyOuterFeePayByIds(ids);
    }

    /**
     * 删除代支管理信息
     * 
     * @param id 代支管理主键
     * @return 结果
     */
    @Override
    public int deleteLedyOuterFeePayById(Long id)
    {
        return ledyOuterFeePayMapper.deleteLedyOuterFeePayById(id);
    }
}
